Xbasic

OBJECT.PRINTER_OVERRIDE Function

Syntax

.Printer_override(C printername[,P printeroptions[,P saveoldoptions]])

Arguments

printername

The printer to use.

printeroptions

Optional. Default = Use current printer configuration. A dot variable containing the desired printer configuration.

saveoldoptions

Optional. A dot variable to save the previous printer configuration.

Description

Sets the printer configuration.

The <OBJECT>.PRINTER_OVERRIDE() method applies to:

Browses (for <OBJECT> use either the <BROWSE> pointer or the name of the browse)
Forms (for <OBJECT> use either the <FORM> pointer or the name of the form)

The <OBJECT>.PRINTER_OVERRIDE() method sets the printer configuration, and optionally, saves the current configuration before overwriting it.

Example

saved_report_driver = :report.printer_override(driver_name)

Limitations

Desktop applications only.

See Also